package com.lonely.order.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.lonely.goods.domain.dto.goods.GoodsQuotationSheetPartProcessDTO;
import com.lonely.order.domain.dto.order.CalculateWagesDTO;
import com.lonely.order.domain.entity.SysOrderPart;
import com.lonely.order.domain.entity.SysOrderProcess;

/**
 * @author : 黄志标
 * @date: 2025/7/2 10:47
 * @description: 订单工序接口
 */
public interface IOrderProcessService extends IService<SysOrderProcess> {

    /**
     * 创建订单工序
     *
     * @param sysOrderPart
     * @param goodsPartId
     */
    void createOrderProcess(SysOrderPart sysOrderPart, Long goodsPartId);

    /**
     * 查询商品报价单部件工序信息
     *
     * @param goodsPartId
     * @return
     */
    GoodsQuotationSheetPartProcessDTO queryQuotationSheetPartProcesses(Long goodsPartId);

    /**
     * 计算工价
     *
     * @param calculateWages
     * @return
     */
    String calculateWages(CalculateWagesDTO calculateWages);
}
